<?php include template('theme'); include template('header');include template('top');?>


<div class="guide">简单4步，外卖到家 <span><font>1、</font>输入要搜索的地区，店铺，菜名</span><span><font>2、</font>查看外卖信息</span><span><font>3、</font>选择美食</span><span><font>4、</font>下单/打电话叫外卖</span></div>
<div id="wrapper">
	
	<div class="left" style="width:700px;float:left;">
	{php $hotshops = get_index_hot_shop(10,$region['5']);}
	<div class="thd">
	<h2 class="ih2">{$dest[5]}外卖餐馆推荐</h2>
	<p></p>
	</div>
	<div>
		<ul class="itab">
		{loop $hotshops $k $hshop}
		<li onmouseover="show(this,{$k})" {if $ik++<1}class="onli"{/if}>{$hshop['value']}</li>
		{/loop}
		</ul>
		{loop $hotshops $k $hshop}
		<div class="ishop" id="ishop{$k}" style="{if $dk++<1}display:block;{/if}width:710px;">
			{loop $hshop['shop'] $shop}
			<div class="dshop">
			<p><a title="{$shop['shopname']}" href="store.php?id={$shop['shopid']}" target="_blank"><img width="120" height="100" alt="{$shop['shopname']}" src="{if $shop['logo']}{DATA_DIR}{$shop['logo']}{else}{THEME_ROOT}images/noshop.jpg{/if}"></a></p>
			<h2>{$shop['shopname']}</h2>
			<span>{$cates[$shop['cid']]['catename']}</span><br/>
			<span>{if $shop['shopclose']}已打烊，次日 {$shop['worktime']} 开始订餐{else}营业中{/if}</span>
			</div>
			{/loop}
		</div>
		{/loop}
		
	</div>
	
	
	<div class="thd mt15 b2">
	<h2 class="ih2">选择你所在的地区</h2>
	<p>（点击地址查看附近外卖餐馆）</p>
	</div>
	
	<div>
	{php $locations=get_location();}
	{loop $locations $location}
	<div class="iaddr">
    <h4>{$location['name']}</h4>
    <ul>
    {loop $location['sub'] $did $subloca}
     <li><a target="_blank" href="list.php?region={$did}">{$subloca}</a></li>
    {/loop}
   	</ul>
   </div>
   {/loop}
	</div>
	
	
	</div>
	<script type="text/javascript">
	function show(obj,id){
		$('.itab li').removeClass('onli');
		$(obj).addClass('onli');
		$('.ishop').hide();
		$('#ishop'+id).show();
	}
	function showr(obj,id){
		$('.rtab li').removeClass('onli');
		$(obj).addClass('onli');
		$('.imsg').hide();
		$('#imsg'+id).show();
	}
	function showl(obj,id){
		$('.btab li').removeClass('onli');
		$(obj).addClass('onli');
		$('.inotice').hide();
		$('#inotice'+id).show();
	}		
	</script>
	<div class="right" style="float:right;">
		<div  style="width:250px;border: 1px solid #d2d2d2;">
			<ul class="rtab"><li class="onli" onmouseover="showr(this,1)">订餐播报</li><li onmouseover="showr(this,2)" class="">最新点评</li></ul>
			<div class="imsg" id="imsg1" style="display:block;">
			{php $hotorder = get_index_hot_order();}
			{loop $hotorder['orders'] $horder}
				<dl>
				<dd><span class="vicon"></span>{echo substr_replace($horder['phone'],'***',3,6)} 在 <a target="_blank" href="{url store.php?id=$horder[shopid]}"><font color="#FF5300">{$horder['shopname']}</font></a> 叫了
				{php $num = count($hotorder['product'][$horder['txnid']]);$i=0;}
				{loop $hotorder['product'][$horder['txnid']] $product}
				{$product['title']}
				{if ++$i!=$num}，{/if}
				{/loop}
				等</dd>
				</dl>
			{/loop}
			</div>
			<div class="imsg"  id="imsg2">
			{php $dianpin = get_index_new_dianpin();}
			{loop $dianpin['orders'] $horder}
				<dl>
				<dd><span class="vicon"></span>{echo substr_replace($horder['phone'],'***',3,6)} 在 <a target="_blank" href="{url store.php?id=$horder[shopid]}"><font color="#FF5300">{$horder['shopname']}</font></a> 叫了
				{php $num = count($hotorder['product'][$horder['txnid']]);$i=0;}
				{loop $hotorder['product'][$horder['txnid']] $product}
				{$product['title']}
				{if ++$i!=$num}，{/if}
				{/loop}
				等</dd>
				</dl>
			{/loop}
				<dl>
				<img style="" src="http://uc.0519waimai.com/avatar.php?uid=60&amp;size=big">
				<dd>朱由检先生1 在 <a target="_blank" href="/store.php?store_id=69"><font color="#0000FF">老北京果木烤鸭饭</font></a> 叫了榨菜肉丝青菜汤,小笋肉丝等，获得<font color="red">348</font>个积。</dd>
				</dl>
				<dl>
				<img style="" src="http://uc.0519waimai.com/avatar.php?uid=60&amp;size=big">
				<dd>朱由检先生2 在 <a target="_blank" href="/store.php?store_id=69"><font color="#0000FF">老北京果木烤鸭饭</font></a> 叫了榨菜肉丝榨菜肉丝榨菜肉丝榨菜肉丝青菜汤,小笋肉丝等，获得<font color="red">348</font>个积。</dd>
				</dl>
				<dl>
				<img style="" src="http://uc.0519waimai.com/avatar.php?uid=60&amp;size=big">
				<dd>朱由检先生3 在 <a target="_blank" href="/store.php?store_id=69"><font color="#0000FF">老北京果木烤鸭饭</font></a> 叫了榨菜肉丝青菜汤,小笋肉丝等，获得<font color="red">348</font>个积。</dd>
				</dl>
			</div>
		</div>
		
				<div  style="width:250px;border: 1px solid #d2d2d2;" class="mt15">
			<ul class="btab"><li class="onli" onmouseover="showl(this,1)">网站公告</li><li onmouseover="showl(this,2)" class="">订餐流程</li></ul>
			<div class="inotice" id="inotice1" style="display:block;">
				&nbsp;&nbsp;
			</div>
			<div class="inotice" id="inotice2">
				
			</div>
		</div>
	</div>
	
	
		
	<div class="clear"></div>
</div>









<?php include template('footer');?>